<template>
  <div class="container">
    <Editor v-model="state"></Editor>
  </div>
</template>
<script>
import data from "./render-data.json";
import Editor from "./package/editor-box";
import editorConfig from "./package/material/component-map.js";
export default {
  components: {
    Editor,
  },
  data() {
    return {
      state: null,
    };
  },
  provide: {
    config: editorConfig,
  },
  created() {
    this.state = data;
  },
  methods: {},
};
</script>
<style lang="scss" scoped>
.container {
  width: 100%;
  height: 100%;
  border: 1px solid #000;
  box-sizing: border-box;
  padding: 20px;
}
</style>
